package com.zxcz.domain;

import java.util.Date;

/*
 * App用户
 */
public class AppUser {
	/*CREATE TABLE `app_users` (
			  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
			  `username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户名，阿里云iot平台设备名称也用这个',
			  `device_secret` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '阿里iot平台设备密钥',
			  `nickname` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '昵称',
			  `sex` tinyint(3) unsigned DEFAULT NULL COMMENT '性别，1-男，0-女',
			  `province` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '省份',
			  `city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '城市',
			  `country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '国家',
			  `headimgurl` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '头像url',
			  `address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '收货地址',
			  `login_at` timestamp NULL DEFAULT NULL COMMENT '上线时间',
			  `created_at` timestamp NULL DEFAULT NULL,
			  `updated_at` timestamp NULL DEFAULT NULL,
			  `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密码',
			  `iot_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '物联网平台为该设备颁发的设备ID，作为该设备的唯一标识符',
			  PRIMARY KEY (`id`),
			  UNIQUE KEY `app_users_username_unique` (`username`)
			) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;*/
	private Integer id;
	private String username;		//用户名，阿里云iot平台设备名称也用这个
	private String deviceSecret;	//阿里iot平台设备密钥
	private String nickname;	//昵称
	private Integer sex;		//性别，1-男，0-女
	private String province;	//省份
	private String city;		//城市
	private String country;		//国家
	private String headimgurl;	//头像url
	private String address;	//收货地址
	private String loginAt;		//上线时间
	private Date createdAt;
	private Date updatedAt;
	private String password;		//密码
	private String iotId;		//物联网平台为该设备颁发的设备ID，作为该设备的唯一标识符
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getDeviceSecret() {
		return deviceSecret;
	}
	public void setDeviceSecret(String deviceSecret) {
		this.deviceSecret = deviceSecret;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getHeadimgurl() {
		return headimgurl;
	}
	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getLoginAt() {
		return loginAt;
	}
	public void setLoginAt(String loginAt) {
		this.loginAt = loginAt;
	}
	public Date getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	public Date getUpdatedAt() {
		return updatedAt;
	}
	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getIotId() {
		return iotId;
	}
	public void setIotId(String iotId) {
		this.iotId = iotId;
	}
	@Override
	public String toString() {
		return "AppUser [id=" + id + ", username=" + username + ", deviceSecret=" + deviceSecret + ", nickname="
				+ nickname + ", sex=" + sex + ", province=" + province + ", city=" + city + ", country=" + country
				+ ", headimgurl=" + headimgurl + ", address=" + address + ", loginAt=" + loginAt + ", createdAt="
				+ createdAt + ", updatedAt=" + updatedAt + ", password=" + password + ", iotId=" + iotId + "]";
	}
	
}
